import ajax from "./ajax1"

export function hallListApi() {
  return ajax({
    url: '/task'
  })
}

export function UserApi(id, status) {
  return ajax({
    url: 'user/' + id,
    method: 'patch',
    data: {
      status
    }

  })
}
export function StatusApi(id, status) {
  return ajax({
    url: 'task/' + id,
    method: 'patch',
    data: {
      status
    }
  })
}
export function editTaskApi(id, data) {
  return ajax({
    url: 'task/' + id,
    method: 'patch',
    data
  })
}
